|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
edu.stanford.smi.protege.model.DefaultInstance
edu.stanford.smi.protege.model.DefaultCls
public class DefaultCls
Default implementation of Cls interface. Forwards all method calls to its DefaultKnowledgeBase.
| Constructor Summary | |
|---|---|
DefaultCls()
|
|
DefaultCls(KnowledgeBase kb,
FrameID id)
|
|
| Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance |
|---|
addDirectType, addInstanceListener, copy, deepCopy, getBrowserText, getDirectType, getDirectTypes, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.stanford.smi.protege.model.Instance |
|---|
addDirectType, addInstanceListener, getDirectType, getDirectTypes, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public DefaultCls()
public DefaultCls(KnowledgeBase kb,
FrameID id)
| Method Detail |
|---|
public void addClsListener(ClsListener listener)
addClsListener in interface Clspublic void addDirectSuperclass(Cls superclass)
addDirectSuperclass in interface Clspublic void addDirectTemplateSlot(Slot slot)
addDirectTemplateSlot in interface Cls
public void addTemplateFacetValue(Slot slot,
Facet facet,
Object value)
addTemplateFacetValue in interface Cls
public void addTemplateSlotValue(Slot slot,
Object value)
addTemplateSlotValue in interface Clspublic Instance createDirectInstance(String name)
createDirectInstance in interface Clspublic Slot getBrowserSlot()
getBrowserSlot in interface Clspublic BrowserSlotPattern getBrowserSlotPattern()
getBrowserSlotPattern in interface Clspublic Collection getConcreteSubclasses()
getConcreteSubclasses in interface Clspublic Slot getDirectBrowserSlot()
getDirectBrowserSlot in interface Clspublic BrowserSlotPattern getDirectBrowserSlotPattern()
getDirectBrowserSlotPattern in interface Clspublic Slot getInheritedBrowserSlot()
getInheritedBrowserSlot in interface Clspublic BrowserSlotPattern getInheritedBrowserSlotPattern()
getInheritedBrowserSlotPattern in interface Clspublic int getDirectInstanceCount()
getDirectInstanceCount in interface Clspublic Collection<Instance> getDirectInstances()
getDirectInstances in interface ClsInstance
The values returned are instances of this class but not instances of its subclasses. If you want instances of
both a class and its subclasses see Cls.getInstances()public int getDirectSubclassCount()
getDirectSubclassCount in interface Clspublic Collection getDirectSubclasses()
getDirectSubclasses in interface Clspublic int getDirectSuperclassCount()
getDirectSuperclassCount in interface Clspublic Collection<Cls> getDirectSuperclasses()
getDirectSuperclasses in interface Cls
public List getDirectTemplateFacetValues(Slot slot,
Facet facet)
ClsFrame for a description of the returned objects
getDirectTemplateFacetValues in interface Clspublic Collection getDirectTemplateSlots()
getDirectTemplateSlots in interface Clspublic List getDirectTemplateSlotValues(Slot slot)
ClsFrame for a description of the returned objects
getDirectTemplateSlotValues in interface Clspublic int getInstanceCount()
getInstanceCount in interface Clspublic Collection<Instance> getInstances()
getInstances in interface ClsInstance
The values returned are instances of this class and all of its subclasses. If you want instances of
just this class see Cls.getDirectInstances()public Collection getSubclasses()
ClsCls.getDirectSubclasses()
getSubclasses in interface ClsClspublic Collection getSuperclasses()
ClsCls.getDirectSubclasses()
getSuperclasses in interface ClsClspublic Collection getTemplateFacets(Slot slot)
getTemplateFacets in interface Clspublic Collection getOverriddenTemplateFacets(Slot slot)
getOverriddenTemplateFacets in interface Clspublic Collection getDirectlyOverriddenTemplateFacets(Slot slot)
getDirectlyOverriddenTemplateFacets in interface Cls
public Object getTemplateFacetValue(Slot slot,
Facet facet)
ClsFrame for a description of the return type
getTemplateFacetValue in interface Cls
public Collection getTemplateFacetValues(Slot slot,
Facet facet)
ClsFrame for a description of the return type
getTemplateFacetValues in interface Clspublic Collection getTemplateSlotAllowedClses(Slot slot)
getTemplateSlotAllowedClses in interface ClsCls objects if the slot is of type INSTANCE. Undefined otherwisepublic Collection getTemplateSlotAllowedParents(Slot slot)
getTemplateSlotAllowedParents in interface ClsCls objects if the slot is of type CLASS. Undefined otherwisepublic Collection getTemplateSlotAllowedValues(Slot slot)
getTemplateSlotAllowedValues in interface Clspublic boolean getTemplateSlotAllowsMultipleValues(Slot slot)
getTemplateSlotAllowsMultipleValues in interface Clspublic Collection getTemplateSlotDefaultValues(Slot slot)
getTemplateSlotDefaultValues in interface ClsFrame for a description of the object types.public Collection getTemplateSlotDocumentation(Slot slot)
Cls
getTemplateSlotDocumentation in interface Clspublic int getTemplateSlotMaximumCardinality(Slot slot)
Cls
getTemplateSlotMaximumCardinality in interface Clspublic Number getTemplateSlotMaximumValue(Slot slot)
getTemplateSlotMaximumValue in interface Clspublic int getTemplateSlotMinimumCardinality(Slot slot)
getTemplateSlotMinimumCardinality in interface Clspublic Number getTemplateSlotMinimumValue(Slot slot)
getTemplateSlotMinimumValue in interface Clspublic Collection getTemplateSlots()
getTemplateSlots in interface Clspublic Object getTemplateSlotValue(Slot slot)
ClsFrame for a description of the return type
getTemplateSlotValue in interface Clspublic Collection getTemplateSlotValues(Slot slot)
ClsFrame for a description of the return type
getTemplateSlotValues in interface Clspublic ValueType getTemplateSlotValueType(Slot slot)
getTemplateSlotValueType in interface Clspublic int getVisibleDirectSubclassCount()
getVisibleDirectSubclassCount in interface Clspublic Collection getVisibleTemplateSlots()
getVisibleTemplateSlots in interface Clspublic Collection getVisibleDirectSubclasses()
getVisibleDirectSubclasses in interface Cls
public boolean hasDirectlyOverriddenTemplateFacet(Slot slot,
Facet facet)
Cls
hasDirectlyOverriddenTemplateFacet in interface Clspublic boolean hasDirectlyOverriddenTemplateSlot(Slot slot)
Cls
hasDirectlyOverriddenTemplateSlot in interface Clspublic boolean hasDirectSuperclass(Cls cls)
hasDirectSuperclass in interface Clspublic boolean hasDirectTemplateSlot(Slot slot)
hasDirectTemplateSlot in interface Clspublic boolean hasInheritedTemplateSlot(Slot slot)
hasInheritedTemplateSlot in interface Cls
public boolean hasOverriddenTemplateFacet(Slot slot,
Facet facet)
Cls
hasOverriddenTemplateFacet in interface Clspublic boolean hasOverriddenTemplateSlot(Slot slot)
Cls
hasOverriddenTemplateSlot in interface Clspublic boolean hasSuperclass(Cls cls)
hasSuperclass in interface Cls
public boolean hasTemplateFacet(Slot slot,
Facet facet)
hasTemplateFacet in interface Clspublic boolean hasTemplateSlot(Slot slot)
hasTemplateSlot in interface Clspublic boolean isAbstract()
isAbstract in interface Clspublic boolean isClsMetaCls()
isClsMetaCls in interface Clspublic boolean isConcrete()
isConcrete in interface Clspublic boolean isDefaultClsMetaCls()
isDefaultClsMetaCls in interface Clspublic boolean isDefaultFacetMetaCls()
isDefaultFacetMetaCls in interface Clspublic boolean isDefaultSlotMetaCls()
isDefaultSlotMetaCls in interface Clspublic boolean isFacetMetaCls()
isFacetMetaCls in interface Clspublic boolean isMetaCls()
isMetaCls in interface Clspublic boolean isRoot()
isRoot in interface Clspublic boolean isSlotMetaCls()
isSlotMetaCls in interface Cls
public void moveDirectSubclass(Cls movedSubclass,
Cls afterCls)
ClsmovedSubclass so that it appears
after afterCls . If aftetCls is null then the movedSubclass appears
first
moveDirectSubclass in interface Cls
public void moveDirectTemplateSlot(Slot slot,
int toIndex)
moveDirectTemplateSlot in interface Clspublic void removeClsListener(ClsListener listener)
removeClsListener in interface Clspublic void removeDirectSuperclass(Cls superclass)
removeDirectSuperclass in interface Clspublic void removeDirectTemplateSlot(Slot slot)
removeDirectTemplateSlot in interface Clspublic void removeTemplateFacetOverrides(Slot slot)
removeTemplateFacetOverrides in interface Clspublic void setAbstract(boolean isAbstract)
setAbstract in interface Clspublic void setDirectBrowserSlot(Slot slot)
setDirectBrowserSlot in interface Clspublic void setDirectBrowserSlotPattern(BrowserSlotPattern slotPattern)
setDirectBrowserSlotPattern in interface Clspublic void setDirectTypeOfSubclasses(Cls metaCls)
setDirectTypeOfSubclasses in interface Cls
public void setTemplateFacetValue(Slot slot,
Facet facet,
Object value)
ClsFrame for a description of the value type
setTemplateFacetValue in interface Cls
public void setTemplateFacetValues(Slot slot,
Facet facet,
Collection values)
ClsFrame for a description of the value type
setTemplateFacetValues in interface Cls
public void setTemplateSlotAllowedClses(Slot slot,
Collection clses)
setTemplateSlotAllowedClses in interface Cls
public void setTemplateSlotAllowedParents(Slot slot,
Collection parents)
setTemplateSlotAllowedParents in interface Cls
public void setTemplateSlotAllowedValues(Slot slot,
Collection values)
setTemplateSlotAllowedValues in interface Cls
public void setTemplateSlotAllowsMultipleValues(Slot slot,
boolean multiple)
setTemplateSlotAllowsMultipleValues in interface Cls
public void setTemplateSlotDefaultValues(Slot slot,
Collection values)
ClsFrame for a description of the value type
setTemplateSlotDefaultValues in interface Cls
public void setTemplateSlotDocumentation(Slot slot,
String value)
setTemplateSlotDocumentation in interface Cls
public void setTemplateSlotDocumentation(Slot slot,
Collection values)
setTemplateSlotDocumentation in interface Cls
public void setTemplateSlotMaximumCardinality(Slot slot,
int max)
Cls
setTemplateSlotMaximumCardinality in interface Cls
public void setTemplateSlotMaximumValue(Slot slot,
Number maximum)
Cls
setTemplateSlotMaximumValue in interface Cls
public void setTemplateSlotMinimumCardinality(Slot slot,
int min)
Cls
setTemplateSlotMinimumCardinality in interface Cls
public void setTemplateSlotMinimumValue(Slot slot,
Number minimum)
setTemplateSlotMinimumValue in interface Cls
public void setTemplateSlotValue(Slot slot,
Object value)
ClsFrame for a description of the value type
setTemplateSlotValue in interface Cls
public void setTemplateSlotValues(Slot slot,
Collection values)
ClsFrame for a description of the value type
setTemplateSlotValues in interface Cls
public void setTemplateSlotValueType(Slot slot,
ValueType type)
setTemplateSlotValueType in interface Clspublic String toString()
toString in class Objectpublic Icon getIcon()
getIcon in interface FramegetIcon in class DefaultFramepublic Cls rename(String name)
Frame
rename in interface Clsrename in interface Framerename in class DefaultFrame
|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||